package level.editor.menu;

import javax.swing.JMenu;

import level.editor.command.Command;

/*
 * Abstract class of menu categories. Will be subclassed into specific
 * categories. Planned categories: "File", "Edit", "Help".
 */

public abstract class MenuCategory extends JMenu
{
	protected MenuView view;

	public MenuCategory(String name, MenuView view)
	{
		super(name);
		this.view = view;
		init();
	}

	protected abstract void init();
	
	protected abstract void pushDownCommand(Command command);
}
